<script>
export default {
  onLaunch: function () {
    console.log('App Launch')
  },
  onShow: function () {
    console.log('App Show')
  },
  onHide: function () {
    // 小程序关闭时,vuex=>store
    wx.setStorageSync('cart', this.$store.state.cart)
  }
}
</script>

<style>
/* @import url('/css/iconfont.css');
 */
 @import url(./css/iconfont.css);

page {
  color: #333;
}

.text-line2 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
</style>
